/*
 * @Author: 李惠婵 lihuichan@yxhyidc.com
 * @Date: 2022-10-14 17:30:43
 * @LastEditors: 李惠婵 lihuichan@yxhyidc.com
 * @LastEditTime: 2022-12-14 19:18:26
 * @FilePath: \robot-webd:\project\rural-revitalization-web2\src\api\screen\screen copy.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */


import request from '@/utils/request'
//可视化-乡镇概况 
export function visualizeBasic() {
    return request({
        url: '/screen/visualize/overview/queryOverview',
        method: 'get',
    })
}
//村居概况 
export function queryVillageOverview(query) {
    return request({
        url: '/screen/visualize/overview/queryVillageOverview',
        method: 'get',
        params: query
    })
}
//总人口|户籍人口|下设社区 
export function TotalOverview() {
    return request({
        url: '/screen/visualize/overview/queryTotalOverview',
        method: 'get',
    })
}
//领导关怀大屏概况
export function LeaderOverview() {
    return request({
        url: '/screen/visualize/overview/queryLeaderSupportOverview',
        method: 'get',
    })
}
//荣誉大屏
export function HonourOverview() {
    return request({
        url: '/screen/visualize/overview/queryHonourOverview',
        method: 'get',
    })
}
//重点企业
export function EnterprisesOverview() {
    return request({
        url: '/screen/visualize/overview/queryEnterprisesOverview',
        method: 'get',
    })
}
//特色产业概况
export function FeatureIndustryOverview(query) {
    return request({
        url: '/screen/visualize/overview/queryFeatureIndustryOverview',
        method: 'get',
        params: query
    })
}
//特色产业概况GET详细
export function featureIndustryDetails(id) {
    return request({
        url: '/screen/visualize/overview/featureIndustry/' + id,
        method: 'get',
    })
}
//乡镇特色概况 
export function TownshipFeatureOverview() {
    return request({
        url: '/screen/visualize/overview/queryTownshipFeatureOverview',
        method: 'get'
    })
}
//景点详细
export function culturalTourism(id) {
    return request({
        url: '/screen/visualize/overview/scenicSpots/' + id,
        method: 'get'
    })
}
//民宿详细 
export function hotel(id) {
    return request({
        url: '/screen/visualize/overview/hotel/' + id,
        method: 'get'
    })
}
//农家乐详细
export function restaurant(id) {
    return request({
        url: '/screen/visualize/overview/restaurant/' + id,
        method: 'get'
    })
}
//乡镇概况 
export function getTownship() {
    return request({
        url: '/back/visualize/overview/areaCode',
        method: 'get'
    })
}
//新增修改可视化-概况 
export function editTownship(data) {
    return request({
        url: '/back/visualize/overview',
        method: 'post',
        data
    })
}
//获取页面配置
export function pageConfig(id) {
    return request({
        url: '/visualize/pageConfig/detail/' + id,
        method: 'get'
    })
}
//产业招商资料详细信息
export function getInvestment(id) {
    return request({
        url: '/back/visualize/investment/' + id,
        method: 'get'
    })
}
///基层治理 特殊人群情况
export function querySpecialPerson() {
    return request({
        url: '/screen/visualize/governance/querySpecialPerson',
        method: 'get'
    })
}
//养老数据
export function queryElderly() {
    return request({
        url: '/screen/visualize/governance/queryElderly',
        method: 'get'
    })
}
//工单/screen/visualize/governance/queryCoGovernance
export function queryCoGovernance() {
    return request({
        url: '/screen/visualize/governance/queryCoGovernance',
        method: 'get'
    })
}
//社区网格概况
export function queryGridOverview(query) {
    return request({
        url: '/screen/visualize/overview/queryGridOverview',
        method: 'get',
        params: query
    })
}
// 志愿者统计
export function queryVolunteerStat() {
    return request({
        url: '/screen/visualize/governance/queryVolunteerStat',
        method: 'get'
    })
}
///grid/analysis/gridNum
export function gridNum() {
    return request({
        url: '/grid/analysis/gridNum',
        method: 'get'
    })
}